package com.micangcaihang.micang.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.luck.picture.lib.entity.LocalMedia;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <pre>
 *     author : Fandy
 *     e-mail : fandayongfly@gmail.com
 *     time   : 2017/07/17
 *     desc   : 附件信息实体类
 *     version: 1.0
 * </pre>
 */

public class TaskAccessoryInfoEntity implements Serializable, MultiItemEntity {
    /**
     * file_type_id : 11
     * file_type_name : 周边道路
     * file_content : [{"file_id":2138,"order_number":1,"file_path":"/biz/227/11_15009765901_1.png","file_serial":1}]
     */
    private String bigtitle;//文件总的标题
    private int item_type;

    public TaskAccessoryInfoEntity(String bigtitle, int item_type) {
        this.bigtitle = bigtitle;
        this.item_type = item_type;
    }

    public int getItem_type() {
        return item_type;
    }

    public void setItem_type(int item_type) {
        this.item_type = item_type;
    }

    public String getBigtitle() {
        return bigtitle;
    }

    public void setBigtitle(String bigtitle) {
        this.bigtitle = bigtitle;
    }

    private String file_type_id;//文件类型编号
    private String file_type_name;//文件类型名称
    private List<FileContentBean> file_content;
    /**
     * file_step : 2
     * file_type_id : 41
     * file_name : 借款人身份证原件
     * order_number : 1
     * file_category : 1
     * file_content : [{"file_id":2054,"file_type":41,"file_path":"/biz/262/41_15003771191_50.png","file_keywords":"QQ图片20170717165807.png","file_serial":1}]
     */

    private String file_step;
    private String file_name;
    private String order_number;
    private String file_category;
    private int require_flag;

    public int getRequire_flag() {
        return require_flag;
    }

    public void setRequire_flag(int require_flag) {
        this.require_flag = require_flag;
    }

    public String getFile_type_id() {
        return file_type_id;
    }

    public void setFile_type_id(String file_type_id) {
        this.file_type_id = file_type_id;
    }

    public String getFile_type_name() {
        return file_type_name;
    }

    public void setFile_type_name(String file_type_name) {
        this.file_type_name = file_type_name;
    }

    public List<FileContentBean> getFile_content() {
        if (file_content == null) {
            setFile_content(new ArrayList<>());
        }
        return file_content;
    }

    public void setFile_content(List<FileContentBean> file_content) {
        this.file_content = file_content;
    }

    public String getFile_step() {
        return file_step;
    }

    public void setFile_step(String file_step) {
        this.file_step = file_step;
    }


    public String getFile_name() {
        return file_name;
    }

    public void setFile_name(String file_name) {
        this.file_name = file_name;
    }

    public String getOrder_number() {
        return order_number;
    }

    public void setOrder_number(String order_number) {
        this.order_number = order_number;
    }

    public String getFile_category() {
        return file_category;
    }

    public void setFile_category(String file_category) {
        this.file_category = file_category;
    }

    @Override
    public int getItemType() {
        return item_type;
    }


    public static class FileContentBean extends LocalMedia implements Serializable {
        /**
         * file_id : 2138
         * order_number : 1
         * file_path : /biz/227/11_15009765901_1.png
         * file_serial : 1
         */

        private String file_id;//business_files表主键ID
        private String order_number;//排序号
        private String file_path; //文件路径
        private String file_serial; //文件序号
        private String file_keywords;

        public String getFile_keywords() {
            return file_keywords;
        }

        public void setFile_keywords(String file_keywords) {
            this.file_keywords = file_keywords;
        }

        public String getFile_id() {
            return file_id;
        }

        public void setFile_id(String file_id) {
            this.file_id = file_id;
        }

        public String getOrder_number() {
            return order_number;
        }

        public void setOrder_number(String order_number) {
            this.order_number = order_number;
        }

        public String getFile_path() {
            return file_path;
        }

        public void setFile_path(String file_path) {
            this.file_path = file_path;
        }

        public String getFile_serial() {
            return file_serial;
        }

        public void setFile_serial(String file_serial) {
            this.file_serial = file_serial;
        }

    }

}
